import * as React from 'react';

// 需要在 html 中全局引入 nprogress

export class LoadingIndicator extends React.PureComponent<any, any> {
    public static displayName = 'LoadingIndicator';

    constructor(props: any) {
        super(props);
        NProgress.start();
    }

    public componentWillUnmount() {
        NProgress.done();
    }

    public render() {
        return <div />;
    }
}
